// 泛型介绍
const identity:idBoolean = (arg) => arg
type idBoolean = (arg: boolean) => boolean
type idString = (arg: string) => string
identity(false)
// identity('123') // 类型“string”的参数不能赋给类型“boolean”的参数
function identityT<T>(value: T): T {
    return value
}
function myIdentity<T, U>(value: T, message: U): T {
    console.log(message)
    return value
}
myIdentity(68, "abc")
